package com.atguigu.springcloud.alibaba.dao;

import com.atguigu.springcloud.alibaba.domain.TAccount;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;


public interface TAccountDao {
    int deleteByPrimaryKey(Long id);

    int insert(TAccount record);

    int insertSelective(TAccount record);

    TAccount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TAccount record);

    int updateByPrimaryKey(TAccount record);

    void decrease(@Param("userId") Long userId,@Param("money") BigDecimal money);
}